import { createApp } from 'vue'
import App from './App.vue'
import router from './router'                            //引入路由
import ElementPlus from 'element-plus'                  //引入element-plus样式
import 'element-plus/dist/index.css'                    //引入element-plus样式
import zhCn from 'element-plus/es/locale/lang/zh-cn'   //引入element-plus的中文语言包
import * as ElementPlusIconsVue from '@element-plus/icons-vue'//引入element-plus的图标
import '@/assets/css/global.css'                       //页面全局样式
import './assets/icon-fornt/iconfont.css'         //引入下载的阿里巴巴矢量图标库

const app = createApp(App)
app.use(router)                         //使用路由
app.use(ElementPlus, {locale: zhCn})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}                                      //注册element-plus的图标组件,使用element-plus
app.mount('#app')
